/* 微信小程序风格移动端样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f7f7f7;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

/* iPhone 15 Pro Max 外壳样式 */
.phone-container {
    width: 430px;
    height: 932px;
    margin: 20px auto;
    background: #000;
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
}

/* 顶部刘海区域 */
.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 210px;
    height: 30px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 100;
}

/* 应用容器 */
.app-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 顶部状态栏 */
.status-bar {
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
}

/* 内容区域 */
.content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 60px;
    background: #f7f7f7;
}

/* 底部导航栏 */
.tab-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #e5e5e5;
    padding-bottom: 10px;
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    transition: color 0.2s;
    cursor: pointer;
}

.tab-item.active {
    color: #07c160;
}

.tab-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* 首页样式 */
.home-header {
    background: linear-gradient(135deg, #07c160 0%, #06ae56 100%);
    color: white;
    padding: 20px;
    border-radius: 0 0 20px 20px;
    margin-bottom: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 25px;
    background: #fff;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #07c160;
    font-weight: bold;
}

.user-details h2 {
    font-size: 18px;
    margin-bottom: 5px;
}

.user-details p {
    font-size: 14px;
    opacity: 0.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    opacity: 0.8;
}

.quick-actions {
    padding: 0 20px;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 15px 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s;
}

.action-item:active {
    transform: scale(0.95);
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 20px;
    color: white;
}

.action-label {
    font-size: 12px;
    color: #333;
}

/* 工作台样式 */
.work-header {
    background: white;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.search-bar {
    background: #f5f5f5;
    border-radius: 20px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.search-icon {
    margin-right: 10px;
    color: #999;
}

.task-filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.filter-item {
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 15px;
    font-size: 12px;
    white-space: nowrap;
    color: #666;
}

.filter-item.active {
    background: #07c160;
    color: white;
}

.task-list {
    padding: 0 20px;
}

.task-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.task-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.task-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.task-tag {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    color: white;
}

.tag-urgent {
    background: #ff5722;
}

.tag-important {
    background: #ff9800;
}

.tag-normal {
    background: #2196f3;
}

/* 我的页面样式 */
.profile-header {
    background: linear-gradient(135deg, #07c160 0%, #06ae56 100%);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 40px;
    background: #fff;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #07c160;
    font-weight: bold;
}

.profile-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
}

.profile-role {
    font-size: 14px;
    opacity: 0.8;
}

.menu-section {
    margin-top: 20px;
    background: white;
    border-radius: 10px;
    margin: 0 20px 20px;
    overflow: hidden;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:active {
    background: #f5f5f5;
}

.menu-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #07c160;
}

.menu-text {
    flex: 1;
    font-size: 16px;
    color: #333;
}

.menu-arrow {
    color: #ccc;
}

/* 通用样式 */
.card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.btn {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: #07c160;
    color: white;
}

.btn-primary:active {
    background: #06ae56;
}

.text-center {
    text-align: center;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .phone-container {
        width: 100%;
        height: 100vh;
        margin: 0;
        border-radius: 0;
        padding: 0;
    }
    
    .phone-screen {
        border-radius: 0;
    }
    
    .notch {
        display: none;
    }
}